package com.leesche.zcsp.node.web.vo.v2.enums;

import com.leesche.zcsp.node.web.constants.Constants;

/** 
 * @Title: WhereaboutsEnum.java
 * @Description: TODO( 提现去向 )
 * @author Jerry Chan
 * @date 2016/12/22 16:36 
 * @version V1.0 
 * ************ * Jerry Chan: * 2016/12/22 16:36: * 创建该类并实现业务逻辑: *********  
 */
public enum WhereaboutsEnum {
    BANKCARD(1, "银行卡"),
    ALIPAY(2, "支付宝"),
    WECHAT(3, "微信支付");

    private Integer id;
    private String whereabout;

    private WhereaboutsEnum(Integer id, String whereabout) {
        this.id = id;
        this.whereabout = whereabout;
    }

    public static String getText(Integer id) {
        for (WhereaboutsEnum we : WhereaboutsEnum.values()) {
            if (we.id == id) {
                return we.whereabout;
            }
        }
        return "未知去向";
    }

}
